#ifndef BALL_H
#define BALL_H

#include <QtGui>

class Ball : public QGraphicsItem
{

public:
     Ball(int x, int y, int radius);
     QRectF boundingRect() const;
     void paint(QPainter *painter, const QStyleOptionGraphicsItem *option = 0, QWidget *widget = 0);
protected:
     void advance(int step);
private:
     int radius;
 };

#endif // BALL_H
